package com.fd.dx.web.controllers;

import com.fd.dx.domain.FW;
import com.fd.dx.service.FWService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.HashMap;
import java.util.Map;

/**
 * Created by lenovo on 2018/3/10.
 */
@Controller
@RequestMapping("/fw")
public class FWController {
    @Autowired
    public FWService fwService;
    @RequestMapping("/getFWInfo")
    @ResponseBody
    public FW getFWInfo(String x, String y) {
        Map map=new HashMap();
        map.put("x",x);
        map.put("y",y);
        return fwService.getFWInfo(map);
    }
    @RequestMapping("/update")
    @ResponseBody
    public Integer update(FW fw) {
        return fwService.updateFWInfo(fw);
    }
}
